#ifndef QMYMESSAGEBOX_H
#define QMYMESSAGEBOX_H

#include <QDialog>
#include "ui_QMyMessageBox.h"

class QMyMessageBox : public QDialog
{
	Q_OBJECT

public:
	QMyMessageBox(QWidget *parent = 0);
	~QMyMessageBox();

private:
	Ui::QMyMessageBox ui;
	bool m_bMoveable;
	bool m_bMaximized;
	QPoint dragPosition;

protected:
	void mouseMoveEvent(QMouseEvent *e);
	void mousePressEvent(QMouseEvent *e);
	void mouseReleaseEvent(QMouseEvent *);

	void SetMessage(const QString &msg, int type);
public:	
	static void information(QWidget * parent, QString info);
	static void error(QWidget * parent, QString info);
	static int question(QWidget * parent, QString info);

public slots:
	void sltOk();
};

#endif // QMYMESSAGEBOX_H
